package com.lifuixng.picturebackend.model.mapping;

import com.lifuixng.picturebackend.model.dto.user.UserAddRequest;
import com.lifuixng.picturebackend.model.dto.user.UserUpdateRequest;
import com.lifuixng.picturebackend.model.entity.User;
import com.lifuixng.picturebackend.model.vo.user.UserLoginVO;
import com.lifuixng.picturebackend.model.vo.user.UserVO;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * @Author Mr.LiFuXing
 * @Date 2024/12/14 15:24
 * @Title UserMapping
 * @Package com.lifuixng.picturebackend.model.mapping
 */

@Mapper(componentModel = "spring")
public interface UserMapping {


    UserLoginVO userToUserLoginVO(User user);


    User userLoginVOToUser(UserLoginVO userLoginVO);

    UserVO userToUserVO(User user);

    User userVOToUser(UserVO userVO);

    List<UserVO> userListToUserVOList(List<User> userList);

    User userAddRequestToUser(UserAddRequest userAddRequest);

    User userUpdateRequestToUser(UserUpdateRequest userUpdateRequest);
}
